package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "users")
public class RcUsers implements Serializable {
    @Id
    private Integer id;

    private String region;

    private String phone;

    private String nickname;

    @Column(name = "portraitUri")
    private String portraituri;

    @Column(name = "passwordHash")
    private String passwordhash;

    @Column(name = "passwordSalt")
    private String passwordsalt;

    @Column(name = "rongCloudToken")
    private String rongcloudtoken;

    private String gender;

    @Column(name = "stAccount")
    private String staccount;

    @Column(name = "phoneVerify")
    private Integer phoneverify;

    @Column(name = "stSearchVerify")
    private Integer stsearchverify;

    @Column(name = "friVerify")
    private Integer friverify;

    @Column(name = "groupVerify")
    private Integer groupverify;

    @Column(name = "pokeStatus")
    private Integer pokestatus;

    @Column(name = "groupCount")
    private Integer groupcount;

    private Long timestamp;

    @Column(name = "createdAt")
    private Date createdat;

    @Column(name = "updatedAt")
    private Date updatedat;

    @Column(name = "deletedAt")
    private Date deletedat;

    @Column(name = "sign")
    private String sign;

    private static final long serialVersionUID = 1L;

    public RcUsers(Integer id, String region, String phone, String nickname,
                   String portraituri, String passwordhash, String passwordsalt,
                   String rongcloudtoken, String gender, String staccount, Integer phoneverify,
                   Integer stsearchverify, Integer friverify, Integer groupverify, Integer pokestatus,
                   Integer groupcount, Long timestamp, Date createdat, Date updatedat, Date deletedat, String sign) {
        this.id = id;
        this.region = region;
        this.phone = phone;
        this.nickname = nickname;
        this.portraituri = portraituri;
        this.passwordhash = passwordhash;
        this.passwordsalt = passwordsalt;
        this.rongcloudtoken = rongcloudtoken;
        this.gender = gender;
        this.staccount = staccount;
        this.phoneverify = phoneverify;
        this.stsearchverify = stsearchverify;
        this.friverify = friverify;
        this.groupverify = groupverify;
        this.pokestatus = pokestatus;
        this.groupcount = groupcount;
        this.timestamp = timestamp;
        this.createdat = createdat;
        this.updatedat = updatedat;
        this.deletedat = deletedat;
        this.sign = sign;
    }

    public RcUsers() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return region
     */
    public String getRegion() {
        return region;
    }

    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    /**
     * @return portraitUri
     */
    public String getPortraituri() {
        return portraituri;
    }

    /**
     * @param portraituri
     */
    public void setPortraituri(String portraituri) {
        this.portraituri = portraituri == null ? null : portraituri.trim();
    }

    /**
     * @return passwordHash
     */
    public String getPasswordhash() {
        return passwordhash;
    }

    /**
     * @param passwordhash
     */
    public void setPasswordhash(String passwordhash) {
        this.passwordhash = passwordhash == null ? null : passwordhash.trim();
    }

    /**
     * @return passwordSalt
     */
    public String getPasswordsalt() {
        return passwordsalt;
    }

    /**
     * @param passwordsalt
     */
    public void setPasswordsalt(String passwordsalt) {
        this.passwordsalt = passwordsalt == null ? null : passwordsalt.trim();
    }

    /**
     * @return rongCloudToken
     */
    public String getRongcloudtoken() {
        return rongcloudtoken;
    }

    /**
     * @param rongcloudtoken
     */
    public void setRongcloudtoken(String rongcloudtoken) {
        this.rongcloudtoken = rongcloudtoken == null ? null : rongcloudtoken.trim();
    }

    /**
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    /**
     * @return stAccount
     */
    public String getStaccount() {
        return staccount;
    }

    /**
     * @param staccount
     */
    public void setStaccount(String staccount) {
        this.staccount = staccount == null ? null : staccount.trim();
    }

    /**
     * @return phoneVerify
     */
    public Integer getPhoneverify() {
        return phoneverify;
    }

    /**
     * @param phoneverify
     */
    public void setPhoneverify(Integer phoneverify) {
        this.phoneverify = phoneverify;
    }

    /**
     * @return stSearchVerify
     */
    public Integer getStsearchverify() {
        return stsearchverify;
    }

    /**
     * @param stsearchverify
     */
    public void setStsearchverify(Integer stsearchverify) {
        this.stsearchverify = stsearchverify;
    }

    /**
     * @return friVerify
     */
    public Integer getFriverify() {
        return friverify;
    }

    /**
     * @param friverify
     */
    public void setFriverify(Integer friverify) {
        this.friverify = friverify;
    }

    /**
     * @return groupVerify
     */
    public Integer getGroupverify() {
        return groupverify;
    }

    /**
     * @param groupverify
     */
    public void setGroupverify(Integer groupverify) {
        this.groupverify = groupverify;
    }

    /**
     * @return pokeStatus
     */
    public Integer getPokestatus() {
        return pokestatus;
    }

    /**
     * @param pokestatus
     */
    public void setPokestatus(Integer pokestatus) {
        this.pokestatus = pokestatus;
    }

    /**
     * @return groupCount
     */
    public Integer getGroupcount() {
        return groupcount;
    }

    /**
     * @param groupcount
     */
    public void setGroupcount(Integer groupcount) {
        this.groupcount = groupcount;
    }

    /**
     * @return timestamp
     */
    public Long getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp
     */
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return createdAt
     */
    public Date getCreatedat() {
        return createdat;
    }

    /**
     * @param createdat
     */
    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    /**
     * @return updatedAt
     */
    public Date getUpdatedat() {
        return updatedat;
    }

    /**
     * @param updatedat
     */
    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }

    /**
     * @return deletedAt
     */
    public Date getDeletedat() {
        return deletedat;
    }

    /**
     * @param deletedat
     */
    public void setDeletedat(Date deletedat) {
        this.deletedat = deletedat;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}